package com.ffcs.web.model.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Baogao entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_baogao")
public class Baogao implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer leftScore;
	private Integer rightScore;
	private String baogaoTitle;
	private String baogaoContent;
	private Integer pingguId;

	// Constructors

	/** default constructor */
	public Baogao() {
	}

	/** full constructor */
	public Baogao(Integer leftScore, Integer rightScore, String baogaoTitle,
			String baogaoContent, Integer pingguId) {
		this.leftScore = leftScore;
		this.rightScore = rightScore;
		this.baogaoTitle = baogaoTitle;
		this.baogaoContent = baogaoContent;
		this.pingguId = pingguId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "leftScore", nullable = false)
	public Integer getLeftScore() {
		return this.leftScore;
	}

	public void setLeftScore(Integer leftScore) {
		this.leftScore = leftScore;
	}

	@Column(name = "rightScore", nullable = false)
	public Integer getRightScore() {
		return this.rightScore;
	}

	public void setRightScore(Integer rightScore) {
		this.rightScore = rightScore;
	}

	@Column(name = "baogaoTitle", nullable = false, length = 100)
	public String getBaogaoTitle() {
		return this.baogaoTitle;
	}

	public void setBaogaoTitle(String baogaoTitle) {
		this.baogaoTitle = baogaoTitle;
	}

	@Column(name = "baogaoContent", nullable = false, length = 2000)
	public String getBaogaoContent() {
		return this.baogaoContent;
	}

	public void setBaogaoContent(String baogaoContent) {
		this.baogaoContent = baogaoContent;
	}

	@Column(name = "pingguId", nullable = false)
	public Integer getPingguId() {
		return this.pingguId;
	}

	public void setPingguId(Integer pingguId) {
		this.pingguId = pingguId;
	}

}